<template>
  <view class="content">
    <swiper class="swiper flex flex-center"  :style="{'height':Dheight+'px'}"
    
    :indicator-dots="indicatorDots" :autoplay="autoplay"  :interval="interval" :duration="duration">
    
    <swiper-item v-for="(item,index) in slidelist" :key="index">
    
    <view class="swiper-item flex flex-center">
    
    <image class="swiperimg text-center" :style="{'width':imgwidth}" @load="setHeight" :mode="imgmode" @click="onClick(item)"  lazy-load="true" :src="item.src"></image>
    
    </view> 
    </swiper-item> 
    </swiper> 
    <view class="text-area">
      <text class="title">Hello RuoYi</text>
    </view>
  </view>
</template>

<script>
  import { rotationList  } from "@/api/index/index"

  export default {
    data() {
      return {
        user: {
          oldPassword: undefined,
          newPassword: undefined,
          confirmPassword: undefined,
		  }}
    },
    onReady() {
	  this.getIndex();
    },
    methods: {
      getIndex() { 
          rotationList({}).then(response => {
            this.$modal.msgSuccess("修改成功")
          })
      }
    }
  }
</script>

<style>
  .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .logo {
    height: 200rpx;
    width: 200rpx;
    margin-top: 200rpx;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50rpx;
  }

  .text-area {
    display: flex;
    justify-content: center;
  }

  .title {
    font-size: 36rpx;
    color: #8f8f94;
  }
</style>
